-- GENERATED SPELL FOR [Plains Creeper] --


function spell0_2563(pUnit, Event) --@Encasing Webs,n/a--
pUnit:FullCastSpellOnTarget(4962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2563', 8000, 1)
end

function spell1_2563(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2563', 30000, 1)
end

function Sorts_2563(pUnit, Event)
local choix_sorts_2563 = math.random(0, 1)
if choix_sorts_2563 == 0 then
pUnit:RegisterEvent('spell0_2563', 1, 1)
end
if choix_sorts_2563 == 1 then
pUnit:RegisterEvent('spell1_2563', 1, 1)
end
end

function mob2563_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2563', math.random(1500, 3000), 1)
end

function mob2563_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2563_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2563_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2563, 1, 'mob2563_Action')
RegisterUnitEvent(2563, 2, 'mob2563_Leave')
RegisterUnitEvent(2563, 3, 'mob2563_Kill')
RegisterUnitEvent(2563, 4, 'mob2563_Die')
